package tw.com.softleader.json.jackson.app;

import java.io.InputStream;

import com.fasterxml.jackson.databind.ObjectMapper;

import tw.com.softleader.json.jackson.entity.Question02Entity;

public class Question02App {

	public static void main(String[] args) {
		
		// read file
		InputStream in = Question02App.class.getResourceAsStream("/question02.json");
		
		Question02Entity q02Entity = null;
		try {
			
			// TODO 請將 q02Entity 載入 question02.json 的資料, 並調整 Question02Entity 使其正常
			ObjectMapper objectMapper = new ObjectMapper();
			q02Entity = objectMapper.readValue(in, Question02Entity.class);
			
			
		} catch (Exception e) {
			e.printStackTrace();
		} 
		
		System.out.println(q02Entity);
		
	}
	
}
